<?
session_start();
if (!isset($_SESSION[login])) {
     header("Location: HomeIndex.php");
     exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Manage Admin</title>
<meta charset="utf-8">
<meta name="description" content="Place your description here">
<meta name="keywords" content="put, your, keyword, here">
<meta name="author" content="Templates.com - website templates provider">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.min.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<!--[if lt IE 7]>
     <link rel="stylesheet" href="css/ie/ie6.css" type="text/css" media="screen">
     <script type="text/javascript" src="js/ie_png.js"></script>
     <script type="text/javascript">
        ie_png.fix('.png, footer, header nav ul li a, .nav-bg, .list li img');
     </script>
<![endif]-->
<!--[if lt IE 9]>
  	<script type="text/javascript" src="js/html5.js"></script>
  <![endif]-->
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body id="page1" onLoad="MM_preloadImages('images/btn_manage/btn_stat_2.gif','images/btn_manage/btn_type_2.gif','images/btn_manage/btn_subj_2.gif','images/btn_manage/btn_major_2.gif','images/btn_manage/btn_member_2.gif','images/btn_manage/btn_addmove_2.gif','images/btn_manage/btn_year_2.gif','images/btn_manage/btn_proj_2.gif')">
<div class="wrap">
   <!-- header -->
   <header>
      <div class="container">
         <h1><a href="homeAdmin.php">Student Portfolio Management System</a></h1>
         <nav>
            <ul>
               <li><a href="homeAdmin.php" class="m1">หน้าแรก</a></li>
               <li><a href="searchAdmin.php" class="m1">ค้นหา</a></li>
               <li><a href="uploadAdmin.php" class="m1">อัพโหลด</a></li>
               <li class="current"><a href="manageAdmin.php" class="m3">จัดการข้อมูลเบื้องต้น</a></li>
               <li class="last"><a href="reportAdmin.php" class="m3">ออกรายงาน</a></li>
            </ul>
         </nav>
         <form action="" id="search-form">
            <fieldset>
            <div class="rowElem">
               <input type="text">
               <a href="#" onClick="document.getElementById('search-form').submit()">ค้นหา</a></div>
            </fieldset>
         </form>
      </div>
   </header>
   <div class="container">
      <!-- aside -->
      <aside>
         <div class="wrap">
   <!-- header -->
   <div class="container">
      <!-- aside -->
      <aside><h2 align ="left">ยินดีต้อนรับ</h2> 
	   <p><? echo $_SESSION["ses_name"]; ?></p>
        <input name="editSelf" type="button" value="แก้ไขข้อมูลส่วนตัว" onClick="window.location='editselfAdmin.php'"><br><br>
      <input name="logOut" type="button" value="ออกจากระบบ" onClick="window.location='logout.php'">
</aside>	 
      <!-- content -->
      <section id="content">   
         <div class="inside">       
         </div>
      </section>
   </div>
</div>
      </aside>
      <!-- content -->
      <section id="content">
       <div class="inside">
         <table width="400" height="300" border="0" cellpadding="15" cellspacing="10">
         	<tr>
               <td colspan="2" class="style30">ระบบจัดการข้อมูลเบื้องต้น</td>
             </tr>
             <tr>
               <td height="19" colspan="3"><hr/></td>
             </tr>
         	<tr>
            	<td valign="middle" align="center"><a href="manageStatus.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Status','','images/btn_manage/btn_stat_2.gif',1)"><img src="images/btn_manage/btn_stat_1.gif" alt="แก้ไขสถานะของผลงาน" width="170" height="34" id="Status"></a></td>
            </tr>
            <tr>
            	<td valign="middle" align="center"><a href="manageType.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Type','','images/btn_manage/btn_type_2.gif',1)"><img src="images/btn_manage/btn_type_1.gif" alt="แก้ไขประเภทของผลงาน" width="170" height="34" id="Type"></a></td>
            </tr>
            <tr>
            	<td valign="middle" align="center"><a href="manageSubject.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Subject','','images/btn_manage/btn_subj_2.gif',1)"><img src="images/btn_manage/btn_subj_1.gif" alt="แก้ไขรายวิชา" width="170" height="34" id="Subject"></a></td>
            </tr>
            <tr>
            	<td valign="middle" align="center"><a href="manageMajor.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Major','','images/btn_manage/btn_major_2.gif',1)"><img src="images/btn_manage/btn_major_1.gif" alt="จัดการสาขาวิชา" width="170" height="34" id="Major"></a></td>
            </tr>
            <tr>
            	<td valign="middle" align="center"><a href="adAdmin.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Member','','images/btn_manage/btn_member_2.gif',1)"><img src="images/btn_manage/btn_member_1.gif" alt="จัดการข้อมูลสมาชิก" width="170" height="34" id="Member"></a></td>
            </tr>
            <tr>
            	<td valign="middle" align="center"><a href="manageProject.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Project','','images/btn_manage/btn_proj_2.gif',1)"><img src="images/btn_manage/btn_proj_1.gif" alt="จัดการข้อมูลผลงาน" width="170" height="34" id="Project"></a></td>
            </tr> 
            <tr>
            	<td valign="middle" align="center"><a href="manageYear.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Semester','','images/btn_manage/btn_year_2.gif',1)"><img src="images/btn_manage/btn_year_1.gif" alt="จัดการปีการศึกษา" width="170" height="34" id="Semester"></a></td>
            </tr>                      
         </table>
   </div>
   </section>  
   </body>
</html>
